<?php $__env->startSection('title','Добавление инструктора'); ?>
<?php $__env->startSection('content'); ?>

    <div class="mt-10">
    <form enctype="multipart/form-data" action="<?php echo e(route('instructors.store')); ?>" method="POST" class="grid grid-cols-1 gap-[30px] max-w-[600px]">
        <?php echo csrf_field(); ?>
        <?php echo method_field('POST'); ?>

        <div>
            <input name="name" type="text"  class="w-full shadow-sky-200 shadow p-[20px] rounded-[10px]" placeholder="Имя" value="">
            <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>
            <input name="surname" type="text"  class="w-full shadow-sky-200 shadow p-[20px] rounded-[10px]" placeholder="Отчество" value="">
            <?php $__errorArgs = ['surname'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <div>
            <input name="second_name" type="text"  class="w-full shadow-sky-200 shadow p-[20px] rounded-[10px]" placeholder="Фамилия" value="">
            <?php $__errorArgs = ['second_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <div>
            <select name="sport" required>

                <option value="Лыжи" selected >Лыжи</option>

                <option value="Ролики" >Ролики</option>

                <option value="Лыжи и ролики" >Лыжи и ролики</option>

                <option value="Игровые виды" >Игровые виды</option>

                <option value="Скалолазание" >Скалолазание</option>

                <option value="Водные виды"  >Водные виды</option>

                <option value="Скалолазание и ролики">Скалолазание и ролики</option>

                <option value="Ролики и скалолазание">Ролики и скалолазание</option>


            </select>
            <?php $__errorArgs = ['sport'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>


        <div>
            <select name="status" required>

                <option value="Шеф-инструктор" >Шеф-инструктор</option>

                <option value="Инструктор" selected>Инструктор</option>

                <option value="Инструктор-стажёр">Инструктор-стажёр</option>

                <option value="Инструктор-стажёр ЛМР" >Инструктор-стажёр ЛМР</option>

                <option value="Руководитель программы">Руководитель программы</option>

                <option value="Волонтер" >Волонтер</option>


            </select>
            <?php $__errorArgs = ['status'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>

            <input type="radio" value="1"  id="recertification" name="recertification" checked>
            <label for="recertification">Переаттестация пройдена</label>

            <input type="radio" value="0"  id="recertification2" name="recertification" checked >
            <label for="recertification2">Переаттестация не пройдена</label>


            <?php $__errorArgs = ['recertification'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>

            <input type="radio" value="1"  id="teamGame" name="teamGame" checked>
            <label for="teamGame">Командные игры - Да</label>

            <input type="radio" value="0"  id="teamGame2" name="teamGame" >
            <label for="teamGame2">Командные игры - Нет</label>


            <?php $__errorArgs = ['teamGame'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>




        <div>
            <select name="centers_id" required>
                <option>Выберите центр</option>
                <?php $__currentLoopData = $centers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $center): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                        <option value="<?php echo e($center->id); ?>"><?php echo e($center->name); ?></option>


                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </select>
            <?php $__errorArgs = ['centers_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

        </div>
        <div>
            <select name="gender" required>
                <option>Выберите пол</option>
                <option value="мужской">Мужской</option>
                <option value="женский">Женский</option>

            </select>
            <?php $__errorArgs = ['gender'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

        </div>

        <div>
            <input name="cert_valid" type="text"  class="w-full shadow-sky-200 shadow p-[20px] rounded-[10px]" placeholder="Срок сертификата" value="">
            <?php $__errorArgs = ['cert_valid'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div>
            <input name="photo" type="file"  class="w-full shadow-sky-200 shadow p-[20px] rounded-[10px]" placeholder="Фото" value="">
            <?php $__errorArgs = ['photo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
            <div>
                <?php echo e($message); ?>

            </div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>
        <input type="submit" value="Добавить" class="bg-blue-700 p-4 text-white font-bold">
    </form>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/u0577411/data/www/lk.ligamechty.ru/resources/views/instructors/add.blade.php ENDPATH**/ ?>